]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionPrefs: Fix more fallout from un-templating strings
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Feb 2020 18:25:35 +0000 (19:25 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Feb 2020 18:29:21 +0000 (19:29 +0100)
The version field in extension metadata is a number, so we cannot
just use it as a string.

('creator' should be fine, but change it as well for the symmetry)

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1031

js/extensionPrefs/main.js

index 935ab0c695244a3909afc679bf1223371b01e49a..1ae010b36185f6c1f76d2cc91a5d12b7468c2335 100644 (file)
@@ -703,10 +703,10 @@ var ExtensionRow = GObject.registerClass({
 
         this._updatesIcon.visible = this.hasUpdate;
 
-        this._versionLabel.label = this.version;
+        this._versionLabel.label = this.version.toString();
         this._versionLabel.visible = this.version !== '';
 
-        this._authorLabel.label = this.creator;
+        this._authorLabel.label = this.creator.toString();
         this._authorLabel.visible = this.creator !== '';
     }